// 预置依赖
// import _ from 'lodash';
// 全局 Exports 
const { file, parse } = require('../globals.js');

function component() {
	const element = document.createElement('div');

	// lodash 是由当前 script 脚本 import 进来的
	element.innerHTML = _.join([ 'Hello', 'webpack' ], ' ');
	// element.innerHTML = join(['Hello', 'webpack'], ' ');
	// element.onclick = Print.bind(null, 'Hello webpack!');
	element.classList.add('hello');

	// 假设我们处于 `window` 上下文
	this.alert("Hmmm, this probably isn't a great idea...");

    
    console.log(file, parse);

	return element;
}

document.body.appendChild(component());
